package cn.caplike.demo.consistence.threadpool.and.blockingqueue.context.mapper;

import cn.caplike.demo.consistence.threadpool.and.blockingqueue.context.entity.Inventory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface InventoryMapper {
    /**
     * 根据ID查询数据
     */
    Inventory selectById(@Param("id") String id);

    /**
     * 更新库存数据
     */
    void update(@Param("record") Inventory inventory);

    /**
     * 删除
     */
    void delete(String id);
}
